﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="order_manage.aspx.cs" Inherits="web.manage.order_manage" %>
<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title></title>
<link href="css/css.css" rel="stylesheet" type="text/css" />
<link href="css/control.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript" src="js/Common.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="OperateTitle"><div><span id="lblTitleEdit">【 订单查询及管理 】</span></div></div>
<div>
    在此输入订单号查询 : <asp:TextBox ID="tbOrderCode" runat="server" Width="206px"></asp:TextBox>
    &nbsp;&nbsp;&nbsp;
    <asp:Button ID="btnSearch" runat="server" Text=" 查询" 
        onclick="btnSearch_Click" />
</div>
        <table width="2300">
	<tr height="20">
	<th align="left">订单编号</th>
	<th align="left">操作</th>
	<th align="left">交货日期</th>
	<th align="left">下单时间</th>
	<th align="left">订单备注留言</th>
	<th align="left">订单处理进度</th>
	<th align="left">工程地址</th>
	<th align="left">订单状态</th>
	<th align="left">经销商编号</th>
	<th align="left">支付方式</th>
	<th align="left">收货人姓名</th>
	<th align="left">收货人地址</th>
	<th align="left">收货人邮编</th>
	<th align="left">收货人电话</th>
	<th align="left">收货人手机</th>
	<th align="left">收货人EMail</th>

	</tr>
	<asp:Repeater ID="rptList" runat="server" onitemcommand="rptList_ItemCommand">
	<ItemTemplate>
	<tr height="25" style=" background-color:#f7f7f7">
	<td align="left"><%#Eval("orderCode")%></td>
	<td align="left">
	<a href='order_operate.aspx?id=<%#Eval("orderId")%>' target="_blank">订单审核</a>
	&nbsp;<asp:LinkButton ID="lbDelete" CommandName="deleteOrder" CommandArgument='<%#Eval("orderId")%>' runat="server" OnClientClick="return confirm('确定要删除此条信息吗?操作将不可恢复')" Text="删除" /></td>
	<td align="left"><%#Convert.ToDateTime(Eval("deadlineTime")) == DateTime.MinValue ? "" : Eval("deadlineTime","{0:yyyy-MM-dd}")%></td>
	<td align="left"><%#Eval("orderTime")%></td>
	<td align="left"><%#Eval("orderRemark")%></td>
	<td align="left"><%#Eval("schedule")%></td>
	<td align="left"><%#Eval("gongchengdizhi")%></td>
	<td align="left"><%# web.orderstatus.getOrderStatus(Eval("deleteFlag")) %></td>
	<td align="left"><%#Eval("orderCode")!=null&&Eval("orderCode").ToString().Length>2?Eval("orderCode").ToString().Substring(0,2):""%></td>
	<td align="left"><%#Eval("payType")%></td>
	<td align="left"><%#Eval("receiverName")%></td>
	<td align="left"><%#Eval("receiverAddress")%></td>
	<td align="left"><%#Eval("receiverPostCode")%></td>
	<td align="left"><%#Eval("receiverTelephone")%></td>
	<td align="left"><%#Eval("receiverMobile")%></td>
	<td align="left"><%#Eval("receiverEmail")%></td>
	</tr>
	</ItemTemplate>
	</asp:Repeater>
	<tr><td colspan="23">
		<webdiyer:AspNetPager ID="anp" runat="server"  onpagechanged="anp_PageChanged" PageSize="15" 
		FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PrevPageText="上一页">
		</webdiyer:AspNetPager>
		</td>
	</tr>
</table>
    </form>
        <script language="JavaScript">
        <!--
        	    var TbRow = document.getElementsByTagName("table");
        	    if (TbRow != null) {
        	        for (var j = 0; j < TbRow.length; j++) {
        	            var single = TbRow[j];
        	            for (var i = 0; i < single.rows.length; i++) {
        	                if (single.rows[i].rowIndex % 2 == 1) {
        	                    single.rows[i].style.backgroundColor = "";
        	                }
        	                else {
        	                    single.rows[i].style.backgroundColor = "#f7f7f7";
        	                }
        	            }
        	        }
        	    }
        //-->
        </script>
</body>
</html>

